home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
wordapi
/
testwll.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
935b
|
42 lines
LIBRARY TestWLL;
{ sample Word6 add-in .WLL }
USES
WinTypes, WinProcs,
{$IFDEF VER70} Strings, {$ELSE Delphi} SysUtils, {$ENDIF}
WdCmds, WdFid, CapiLib;
{$I TEST.INC} { see TEST.INC for details ;-}
(****************************************************************************
exported procs, called by Word
****************************************************************************)
FUNCTION WdAutoOpen(docID : Integer) : Integer; EXPORT;
{ called by WinWord at load time }
CONST
INIT_FAIL = 0;
INIT_SUCCESS = 1;
VAR
i : Integer;
BEGIN
MessageBox(0, 'Hello World!', 'TESTWLL', MB_OK);
Test1;
WdAutoOpen := INIT_SUCCESS; { success }
END;
PROCEDURE WdAutoRemove; EXPORT;
{ called by WinWord at unload time }
BEGIN
MessageBox(0, 'Unloading..', 'TESTWLL', MB_OK);
END;
EXPORTS
WdAutoOpen INDEX 1,
WdAutoRemove INDEX 2;
BEGIN
END.